<!DOCTYPE html>
<html>

<head>
    <title>我的心愿</title>
    <meta charset="utf-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <link rel="stylesheet" href="/js/bootstrap-4.1.1-dist/css/bootstrap.min.css">
    <script src="/js/jquery/jquery.min.js"></script>
    <script src="/js/bootstrap-4.1.1-dist/js/bootstrap.min.js"></script>
    <link rel="stylesheet" href="/css/font/css/font-awesome.min.css"/>
    <link rel="stylesheet" href="/css/reset.css"/>
    <link rel="stylesheet" href="/css/message.css"/>
    <script src="/js/plugins/jrender/jrender.min.js"></script>
    <link rel="stylesheet" href="/js/plugins/dialog2/dialog.css"/>
    <script src="/js/plugins/dialog2/dialog.min.js"></script>
    <script src="/js/checkLogin.js"></script>
    <script src="/js/common.js"></script>
</head>

<script>
    $(function(){
        if (user.id) {
            //根据用户id获取对应的心愿单
            $.get(baseUrl+"/strategies/myWishes/"+user.id,function(data){
//                console.log({list:data});
                $("#receivers").renderValues({list:data},{
                    getHref:getHref
                });
            });
        }
    })
</script>

<body style="background: url('/upload/2.bmp')">

<div class="search-head">
    <div class="row nav-search">
        <div class="col-2">
            <a href="javascript:history.go(-1);">
                <span><i class="fa fa-chevron-left"></i></span>
            </a>
        </div>
        <div class="col-8">
            <span>我的心愿单</span>
        </div>
        <div class="col-2"></div>
    </div>
</div>
<div id="receivers">
    <div render-loop="list">
        <ul class="list-group">
            <a data-url="/strategyCatalogs.html?id=" render-fun="getHref" render-key="list.id">
                <li class="list-group-item d-flex justify-content-between align-items-center">
                    <div class="item">
                        <img width="30px" render-src="list.coverUrl">
                        <span render-html="list.title">成都攻略</span>
                    </div>
                </li>
            </a>
        </ul>
    </div>
</div>

</body>

</html>